/* *****************************************************
    CIRRIXO CUSTOM THEME - Modern Dark Design
    Last Updated: 2025-10-31 13:19 - Fixed Tickets & VPS Titles
***************************************************** */

/* Import Inter Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #0f1419;
    --bg-card: #141824;
    --bg-hover: #1a1f2e;
    --primary-400: #818cf8;
    --primary-500: #6366f1;
    --primary-600: #4f46e5;
    --primary-700: #4338ca;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --border-color: rgba(99, 102, 241, 0.15);
    --border-subtle: rgba(255, 255, 255, 0.05);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
    height: 100%;
}

body {
    background: linear-gradient(135deg, #0a0e1a 0%, #1a1f35 50%, #0f1425 100%) !important;
    color: var(--text-primary) !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    line-height: 1.6;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Ensure all direct body children respect flexbox */
body > * {
    flex-shrink: 0;
}

body > #main-body,
body > .main-content,
body > main {
    flex: 1 0 auto !important;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    position: relative;
    z-index: 1;
}

/* Header */
#header {
    background: var(--bg-secondary) !important;
    border-bottom: 1px solid var(--border-subtle) !important;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0 !important;
    flex-shrink: 0 !important;
}

#header .top-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

#header .top-nav li a {
    color: var(--text-secondary) !important;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

#header .top-nav li a:hover {
    color: var(--text-primary) !important;
}

#header .logo {
    display: inline-block;
    margin-top: 10px;
}

#header .logo img {
    max-height: 40px;
    filter: brightness(1.2);
}

#header .btn {
    padding: 8px 20px !important;
    font-size: 14px !important;
}

/* Main Navigation */
#main-menu {
    background: var(--bg-secondary) !important;
    border-bottom: 1px solid var(--border-subtle) !important;
    flex-shrink: 0;
    position: relative;
    z-index: 9;
}

.navbar-default {
    background: transparent !important;
    border: none !important;
    margin-bottom: 0 !important;
}

.navbar-default .navbar-brand {
    color: var(--text-primary) !important;
    font-weight: 700 !important;
}

.navbar-default .navbar-nav > li > a {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 20px 15px !important;
    transition: all 0.2s;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
    color: var(--text-primary) !important;
    background: rgba(99, 102, 241, 0.1) !important;
}

.navbar-default .navbar-nav > .active > a {
    color: var(--primary-400) !important;
    background: rgba(99, 102, 241, 0.1) !important;
}

/* Tiles - Stats Cards */
.tiles {
    margin: 30px 0;
}

.tile {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: 16px !important;
    padding: 32px 24px !important;
    margin-bottom: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.tile:hover {
    border-color: var(--primary-500) !important;
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.2), 0 8px 16px rgba(0, 0, 0, 0.3) !important;
    background: #1a1f2e !important;
}

.tile a {
    color: var(--text-primary) !important;
    text-decoration: none;
    position: relative;
    z-index: 1;
}

.tile .icon {
    font-size: 56px;
    margin-bottom: 20px;
    color: var(--primary-500);
    opacity: 0.9;
    transition: transform 0.3s;
}

.tile:hover .icon {
    transform: scale(1.1);
}

.tile .stat {
    font-size: 40px;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1;
}

.tile .title {
    color: var(--text-secondary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.tile .highlight {
    display: none;
}

/* Panels */
.panel {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: 16px !important;
    box-shadow: var(--shadow-sm) !important;
    margin-bottom: 24px;
    transition: all 0.3s;
}

.panel:hover {
    border-color: var(--border-color) !important;
    box-shadow: var(--shadow-md) !important;
}

.panel-heading {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, transparent 100%) !important;
    border-bottom: 1px solid var(--border-subtle) !important;
    padding: 24px !important;
    border-radius: 16px 16px 0 0 !important;
}

.panel-title {
    color: var(--text-primary) !important;
    font-weight: 700 !important;
    font-size: 20px !important;
    letter-spacing: -0.02em;
}

.panel-body {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
    padding: 24px !important;
}

.panel-footer {
    background: transparent !important;
    border-top: 1px solid var(--border-subtle) !important;
    padding: 20px 24px !important;
    border-radius: 0 0 16px 16px !important;
}

/* Buttons */
.btn {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    padding: 12px 28px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none !important;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.btn-primary {
    background: var(--primary-600) !important;
    color: white !important;
}

.btn-primary:hover {
    background: var(--primary-700) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3) !important;
}

.btn-default {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-default:hover {
    background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-800) 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4) !important;
    color: white !important;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-800) 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4) !important;
    color: white !important;
}

.btn-success {
    background: var(--success) !important;
    color: white !important;
}

.btn-success:hover {
    background: #059669 !important;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3) !important;
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--danger) !important;
    color: white !important;
}

.btn-danger:hover {
    background: #dc2626 !important;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3) !important;
    transform: translateY(-2px);
}

.btn-info {
    background: var(--info) !important;
    color: white !important;
}

.btn-info:hover {
    background: #2563eb !important;
    transform: translateY(-2px);
}

.btn-warning {
    background: var(--warning) !important;
    color: white !important;
}

.btn-warning:hover {
    background: #d97706 !important;
    transform: translateY(-2px);
}

/* Forms */
.form-control {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-subtle) !important;
    color: var(--text-primary) !important;
    border-radius: 10px !important;
    padding: 14px 16px !important;
    font-size: 15px !important;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif !important;
}

.form-control:focus {
    background: var(--bg-hover) !important;
    border-color: var(--primary-600) !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1) !important;
    color: var(--text-primary) !important;
    outline: none;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-group label {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

/* Tables */
.table {
    color: var(--text-primary) !important;
    background: transparent !important;
    margin-bottom: 0 !important;
}

.table > thead > tr > th {
    background: rgba(99, 102, 241, 0.08) !important;
    border: none !important;
    border-bottom: 2px solid var(--border-subtle) !important;
    color: var(--text-secondary) !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 18px 16px !important;
}

.table > tbody > tr > td {
    border: none !important;
    border-bottom: 1px solid var(--border-subtle) !important;
    color: var(--text-primary) !important;
    padding: 20px 16px !important;
    font-size: 15px;
    vertical-align: middle !important;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background: rgba(99, 102, 241, 0.02) !important;
}

.table > tbody > tr {
    transition: all 0.2s;
    cursor: pointer;
}

.table > tbody > tr:hover {
    background: var(--bg-hover) !important;
    transform: scale(1.01);
}

.table > tbody > tr {
    background: var(--bg-card) !important;
}

.table-container {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* Services list specific fix */
.table-responsive,
.panel-body,
.tab-content,
.clientarea-content {
    background: transparent !important;
}

/* Force table wrapper to be dark */
.panel .table-responsive {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: 16px !important;
    padding: 0 !important;
}

/* Table panels */
.panel-table,
.panel:has(.table) {
    background: var(--bg-card) !important;
}

/* Badges & Labels */
.label {
    border-radius: 8px !important;
    padding: 6px 12px !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    display: inline-block;
}

.label-success,
.label.status-active,
.status.status-active {
    background: rgba(16, 185, 129, 0.15) !important;
    color: var(--success) !important;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.label-warning,
.label.status-pending,
.status.status-pending {
    background: rgba(245, 158, 11, 0.15) !important;
    color: var(--warning) !important;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.label-danger,
.label.status-cancelled,
.label.status-suspended,
.status.status-cancelled,
.status.status-suspended {
    background: rgba(239, 68, 68, 0.15) !important;
    color: var(--danger) !important;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.label-info,
.status.status-paid,
.status.status-completed {
    background: rgba(59, 130, 246, 0.15) !important;
    color: var(--info) !important;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.label.status-unpaid,
.status.status-unpaid {
    background: rgba(245, 158, 11, 0.15) !important;
    color: var(--warning) !important;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge {
    background: var(--primary-600) !important;
    border-radius: 20px !important;
    padding: 5px 12px !important;
    font-weight: 700 !important;
    font-size: 11px !important;
}

/* Alerts */
.alert {
    border-radius: 12px !important;
    border: none !important;
    padding: 16px 20px !important;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34d399 !important;
    border-left: 4px solid var(--success) !important;
}

.alert-info {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #60a5fa !important;
    border-left: 4px solid var(--info) !important;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #fbbf24 !important;
    border-left: 4px solid var(--warning) !important;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #f87171 !important;
    border-left: 4px solid var(--danger) !important;
}

/* Main Body */
#main-body {
    padding: 40px 0 60px;
    min-height: 50vh;
    background: transparent !important;
    position: relative;
    z-index: 1;
    flex: 1 0 auto !important;
    width: 100%;
}

#main-body .container,
#main-body .container-fluid {
    background: transparent !important;
    margin-bottom: 40px;
    display: block !important;
}

/* Override any container flexbox that might break layout */
#main-body > .container,
#main-body > .container-fluid {
    flex: none !important;
}

/* Fix white backgrounds */
.main-content {
    background: transparent !important;
}

.content-wrapper,
.client-area-content {
    background: transparent !important;
}

/* Ensure panels don't have white backgrounds */
.panel-primary,
.panel-secondary,
.panel-info,
.panel-success,
.panel-warning,
.panel-danger {
    background: var(--bg-card) !important;
}

/* Page Header */
.page-header {
    margin-bottom: 50px;
    padding-bottom: 0;
    border-bottom: none;
    text-align: center;
}

.page-header h1 {
    font-size: 40px;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}

.page-header .tagline,
.page-header p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.page-header .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.page-header .breadcrumb > li + li:before {
    color: var(--text-muted);
}

/* Store page specific header */
.store-page .page-header,
.products-page .page-header {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Search Box */
.home-kb-search {
    position: relative;
    margin: 40px 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.home-kb-search input {
    background: var(--bg-card) !important;
    border: 2px solid var(--border-subtle) !important;
    color: var(--text-primary) !important;
    padding: 20px 60px 20px 24px !important;
    font-size: 16px !important;
    border-radius: 16px !important;
    transition: all 0.3s;
    box-shadow: var(--shadow-md);
    width: 100%;
}

.home-kb-search input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.home-kb-search input:focus {
    border-color: var(--primary-600) !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15), var(--shadow-lg) !important;
    transform: translateY(-2px);
}

.home-kb-search i {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-500);
    font-size: 24px;
    opacity: 0.9;
    pointer-events: none;
}

/* Main wrapper - ensure it grows to fill space */
#main-content,
.main-wrapper,
#main,
.wrapper,
.page-wrapper {
    flex: 1 0 auto !important;
}

/* Direct body containers */
body > .container,
body > .container-fluid {
    flex: 1 0 auto !important;
}

/* But not footer containers */
#footer .container,
#footer .container-fluid,
#header .container,
#header .container-fluid {
    flex: none !important;
    display: block !important;
}

/* Client Home Panels */
.client-home-panels .panel {
    margin-bottom: 24px;
}

.client-home-panels {
    margin-bottom: 80px;
    padding-bottom: 60px;
}

/* Fix panel heading styling */
.client-home-panels .panel-heading {
    background: rgba(99, 102, 241, 0.08) !important;
    border-bottom: 1px solid var(--border-subtle);
    padding: 16px 20px;
    border-radius: 16px 16px 0 0;
}

.client-home-panels .panel-heading h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary) !important;
    margin: 0;
}

.client-home-panels .panel-body {
    padding: 24px;
    min-height: 150px;
}

/* Panel footer styling */
.client-home-panels .panel-footer {
    background: var(--bg-hover) !important;
    border-top: 1px solid var(--border-subtle);
    padding: 16px 20px;
    border-radius: 0 0 16px 16px;
}

.client-home-panels .panel-footer a {
    color: var(--primary-400) !important;
    font-weight: 600;
    text-decoration: none;
}

.client-home-panels .panel-footer a:hover {
    color: var(--primary-300) !important;
}

/* Knowledge Base Search - Position Higher */
.home-kb-search {
    margin: 60px 0 40px !important;
}

/* Add spacing between components */
.client-home-panels + * {
    margin-top: 40px;
}

/* Client area page specific */
.client-area {
    min-height: 60vh;
    padding-bottom: 60px;
    margin-bottom: 0;
    flex: 1;
}

/* Homepage specific spacing */
body.homepage #main-body,
body.index #main-body {
    padding-bottom: 80px;
    min-height: 70vh;
}

/* Footer - Sticky to Bottom */
#footer {
    background: var(--bg-secondary) !important;
    border-top: 1px solid var(--border-subtle) !important;
    color: var(--text-muted) !important;
    padding: 50px 0 30px !important;
    margin-top: auto !important;
    position: relative !important;
    width: 100% !important;
    flex-shrink: 0 !important;
    z-index: 1;
    clear: both;
    left: 0;
    right: 0;
}

/* Absolutely position footer if needed */
@supports not (margin-top: auto) {
    #footer {
        position: absolute;
        bottom: 0;
    }
}

#footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#footer p {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
}

#footer a {
    color: var(--text-secondary) !important;
    transition: color 0.2s;
}

#footer a:hover {
    color: var(--primary-400) !important;
}

#footer .back-to-top {
    display: none !important;
}

#main-body {
    flex: 1;
}

/* Hide Account Dropdown in Navbar */
.navbar-nav li[menuitemname="Account"] .dropdown-toggle,
.navbar-nav li.account-dropdown {
    display: none !important;
}

/* Hide Downloads menu item */
.list-group-item[menuitemname="Downloads"],
li[menuitemname="Downloads"],
a[href*="downloads"],
.panel-sidebar [menuitemname="Downloads"] {
    display: none !important;
}

/* Sidebar */
.sidebar {
    padding-left: 0;
}

.list-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.list-group-item {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-subtle) !important;
    color: var(--text-primary) !important;
    padding: 16px 20px !important;
    transition: all 0.3s;
    font-weight: 500;
    border-radius: 12px !important;
    display: flex;
    align-items: center;
    gap: 12px;
}

.list-group-item:first-child,
.list-group-item:last-child {
    border-radius: 12px !important;
}

.list-group-item:hover {
    background: var(--bg-hover) !important;
    border-color: var(--primary-500) !important;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.list-group-item.active {
    background: rgba(99, 102, 241, 0.15) !important;
    border-color: var(--primary-600) !important;
    color: var(--primary-400) !important;
    font-weight: 700;
}

.list-group-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

/* Panel Sidebar Styling */
.panel-sidebar {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.panel-sidebar .panel-heading {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    margin-bottom: 16px;
}

.panel-sidebar .panel-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
}

.panel-sidebar .list-group {
    margin: 0;
}

/* Modal */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.8) !important;
    z-index: 1040 !important;
}

.modal-backdrop.show {
    opacity: 0.8 !important;
}

.modal {
    z-index: 1050 !important;
}

.modal-dialog {
    z-index: 1051 !important;
}

.modal-content {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
    position: relative;
    z-index: 1052 !important;
}

.modal-header {
    border-bottom: 1px solid var(--border-subtle) !important;
    padding: 28px 30px !important;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, transparent 100%) !important;
    border-radius: 20px 20px 0 0;
}

.modal-footer {
    border-top: 1px solid var(--border-subtle) !important;
    padding: 20px 30px !important;
    background: var(--bg-hover) !important;
    border-radius: 0 0 20px 20px;
    display: flex;
    gap: 12px;
}

.modal-title {
    color: var(--text-primary) !important;
    font-weight: 700;
    font-size: 22px;
}

.modal-body {
    padding: 30px !important;
    color: var(--text-primary) !important;
    font-size: 15px;
    line-height: 1.7;
}

.modal-body p {
    color: var(--text-primary) !important;
    margin-bottom: 16px;
}

.modal-body h1,
.modal-body h2,
.modal-body h3,
.modal-body h4 {
    color: var(--text-primary) !important;
}

/* Modal close button */
.modal-header .close {
    color: var(--text-secondary) !important;
    opacity: 0.7;
    font-size: 32px;
    font-weight: 300;
    text-shadow: none;
}

.modal-header .close:hover {
    color: var(--text-primary) !important;
    opacity: 1;
}

/* Modal buttons */
.modal-footer .btn {
    padding: 12px 32px !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    min-width: 100px;
    font-size: 15px !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative;
    z-index: 1;
}

/* Yes/Confirm button */
.modal-footer .btn-primary,
.modal-footer .btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%) !important;
    border: none !important;
    color: white !important;
}

.modal-footer .btn-primary:hover,
.modal-footer .btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4) !important;
}

/* No/Cancel button in modals - override to keep cancel style */
.modal-footer .btn-default,
.modal-footer .btn-secondary {
    background: var(--bg-hover) !important;
    border: 1px solid var(--border-subtle) !important;
    color: var(--text-primary) !important;
    box-shadow: none !important;
}

.modal-footer .btn-default:hover,
.modal-footer .btn-secondary:hover {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Pagination */
.pagination {
    display: flex;
    gap: 8px;
}

.pagination > li > a,
.pagination > li > span {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-subtle) !important;
    color: var(--text-primary) !important;
    border-radius: 8px !important;
    padding: 10px 16px !important;
    transition: all 0.2s;
    font-weight: 600;
}

.pagination > li > a:hover {
    background: var(--bg-hover) !important;
    border-color: var(--primary-600) !important;
    color: var(--primary-400) !important;
    transform: translateY(-1px);
}

.pagination > .active > a,
.pagination > .active > a:hover {
    background: var(--primary-600) !important;
    border-color: var(--primary-600) !important;
    color: white !important;
}

.pagination > .disabled > a,
.pagination > .disabled > span {
    background: var(--bg-card) !important;
    color: var(--text-muted) !important;
    opacity: 0.5;
}

/* Dropdown */
.dropdown-menu {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    padding: 8px !important;
    margin-top: 8px !important;
}

.dropdown-menu > li > a {
    color: var(--text-primary) !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    transition: all 0.2s;
    font-weight: 500;
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
    background: rgba(99, 102, 241, 0.15) !important;
    color: var(--primary-400) !important;
}

.dropdown-menu .divider {
    background: var(--border-subtle) !important;
    margin: 8px 0 !important;
}

/* Tabs */
.nav-tabs {
    border-bottom: 2px solid var(--border-subtle) !important;
    margin-bottom: 24px;
}

.nav-tabs > li {
    margin-bottom: -2px;
}

.nav-tabs > li > a {
    color: var(--text-secondary) !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 16px 24px !important;
    font-weight: 600;
    transition: all 0.2s;
    position: relative;
}

.nav-tabs > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-600);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.nav-tabs > li > a:hover {
    background: transparent !important;
    color: var(--text-primary) !important;
}

.nav-tabs > li > a:hover::after {
    transform: scaleX(0.5);
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    background: transparent !important;
    color: var(--primary-400) !important;
    border: none !important;
}

.nav-tabs > li.active > a::after {
    transform: scaleX(1);
}

.tab-content {
    color: var(--text-primary);
}

/* Progress Bar */
.progress {
    background: rgba(99, 102, 241, 0.1) !important;
    border-radius: 10px !important;
    height: 10px !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-600) 0%, var(--primary-500) 100%) !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.3);
    transition: width 0.6s ease;
}

.progress-bar-success {
    background: linear-gradient(90deg, var(--success) 0%, #34d399 100%) !important;
}

.progress-bar-warning {
    background: linear-gradient(90deg, var(--warning) 0%, #fbbf24 100%) !important;
}

.progress-bar-danger {
    background: linear-gradient(90deg, var(--danger) 0%, #f87171 100%) !important;
}

/* Well */
.well {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: 16px !important;
    color: var(--text-primary) !important;
    padding: 24px !important;
    box-shadow: var(--shadow-sm);
}

.well-sm {
    padding: 16px !important;
}

.well-lg {
    padding: 32px !important;
}

/* Text Colors */
.text-muted {
    color: var(--text-secondary) !important;
}

.text-primary {
    color: var(--primary-400) !important;
}

.text-success {
    color: var(--success) !important;
}

.text-danger {
    color: var(--danger) !important;
}

.text-warning {
    color: var(--warning) !important;
}

.text-info {
    color: var(--info) !important;
}

/* Links */
a {
    color: var(--primary-400) !important;
    transition: color 0.2s;
    text-decoration: none;
}

a:hover {
    color: var(--primary-500) !important;
    text-decoration: none;
}

a:focus {
    outline: 2px solid var(--primary-600);
    outline-offset: 2px;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary) !important;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 36px;
    font-weight: 900;
}

h2 {
    font-size: 30px;
}

h3 {
    font-size: 24px;
}

/* Breadcrumbs */
.breadcrumb {
    background: transparent !important;
    padding: 12px 0 !important;
    margin: 0 !important;
}

.breadcrumb > li {
    color: var(--text-secondary);
}

.breadcrumb > li > a {
    color: var(--text-secondary) !important;
}

.breadcrumb > li > a:hover {
    color: var(--primary-400) !important;
}

.breadcrumb > .active {
    color: var(--text-primary);
}

/* Input Groups */
.input-group-addon {
    background: var(--bg-hover) !important;
    border: 1px solid var(--border-subtle) !important;
    color: var(--text-secondary) !important;
}

.input-group-btn .btn {
    border-radius: 0 10px 10px 0 !important;
}

/* Tooltips & Popovers */
.tooltip-inner {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 8px 12px;
    box-shadow: var(--shadow-md);
}

.popover {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.popover-title {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, transparent 100%);
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-weight: 700;
}

.popover-content {
    color: var(--text-primary);
}

/* DataTables - Complete Dark Theme */
.dataTables_wrapper {
    color: var(--text-primary);
    background: transparent !important;
}

.dataTables_filter,
.dataTables_length,
.dataTables_info,
.dataTables_paginate {
    background: transparent !important;
    color: var(--text-primary) !important;
}

.dataTables_filter input {
    background: rgba(10, 14, 26, 0.8) !important;
    border: 1px solid var(--border-subtle) !important;
    color: var(--text-primary) !important;
    border-radius: 8px;
    padding: 8px 12px;
}

.dataTables_length select {
    background: rgba(10, 14, 26, 0.8) !important;
    border: 1px solid var(--border-subtle) !important;
    color: var(--text-primary) !important;
    border-radius: 8px;
    padding: 6px 10px;
}

.dataTables_info {
    color: var(--text-secondary) !important;
}

/* DataTables specific rows and cells */
.dataTables_empty,
.dataTables_processing {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
}

/* Fix the white space around tables */
.table-responsive {
    background: transparent !important;
}

.table-list-container,
.table-list {
    background: transparent !important;
}

/* Services, Invoices, Quotes Pages - Fix White Areas */
#tableServicesList_wrapper,
#tableInvoicesList_wrapper,
#tableTicketsList_wrapper,
#tableDomainsList_wrapper,
#tableQuotesList_wrapper {
    background: transparent !important;
}

#tableServicesList_filter,
#tableInvoicesList_filter,
#tableTicketsList_filter,
#tableDomainsList_filter,
#tableQuotesList_filter {
    background: transparent !important;
}

/* Fix the actual table loading/empty state area */
#tableLoading,
.table-loading,
.dataTables_scroll,
.dataTables_scrollBody {
    background: transparent !important;
    color: var(--text-primary) !important;
}

/* Pagination controls */
.dataTables_paginate .paginate_button {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: 6px;
    margin: 0 2px;
}

.dataTables_paginate .paginate_button:hover {
    background: var(--bg-hover) !important;
    color: var(--primary-400) !important;
    border-color: var(--primary-600) !important;
}

.dataTables_paginate .paginate_button.current,
.dataTables_paginate .paginate_button.current:hover {
    background: var(--primary-600) !important;
    color: white !important;
    border-color: var(--primary-600) !important;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-hover);
    border-radius: 6px;
    border: 3px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.5);
}

/* Selection */
::selection {
    background: rgba(99, 102, 241, 0.3);
    color: var(--text-primary);
}

::-moz-selection {
    background: rgba(99, 102, 241, 0.3);
    color: var(--text-primary);
}

/* Loading Spinner */
.loading,
.spinner {
    color: var(--primary-500);
}

/* Home Banner - Enhanced */
#home-banner {
    background: transparent;
    padding: 100px 0 80px;
    margin-bottom: 0;
    text-align: center;
}

#home-banner h2 {
    margin-bottom: 20px;
    font-size: 48px;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

#home-banner p,
#home-banner .tagline {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Domain search form on homepage */
#home-banner .input-group {
    max-width: 600px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
}

#home-banner .input-group input {
    height: 60px;
    font-size: 18px;
    border-radius: 16px 0 0 16px !important;
}

#home-banner .input-group-btn .btn {
    height: 60px;
    padding: 0 32px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 0 16px 16px 0 !important;
}

/* Home Shortcuts - How can we help section */
.home-shortcuts {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: 80px 0;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.home-shortcuts .container {
    max-width: 1200px;
}

.home-shortcuts .lead {
    font-size: 32px;
    font-weight: 900;
    color: var(--text-primary) !important;
    margin-bottom: 50px;
    letter-spacing: -0.03em;
    text-align: center;
}

.home-shortcuts ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
}

.home-shortcuts li {
    margin: 0;
    min-height: 220px;
    width: 100%;
    flex: 1;
}

.home-shortcuts a {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, var(--bg-card) 100%);
    border: 2px solid var(--border-subtle);
    border-radius: 20px;
    padding: 48px 28px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 200px;
    height: 100%;
    width: 100% !important;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-decoration: none !important;
    flex-shrink: 0;
}

.home-shortcuts a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s;
}

.home-shortcuts a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-600) 0%, var(--info) 100%);
    transform: scaleX(0);
    transition: transform 0.4s;
}

.home-shortcuts a:hover::after {
    transform: scaleX(1);
}

.home-shortcuts a:hover::before {
    opacity: 1;
}

.home-shortcuts a:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-500);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.25), 0 10px 20px rgba(0, 0, 0, 0.4);
}

.home-shortcuts i {
    font-size: 56px;
    color: var(--primary-500);
    margin-bottom: 24px;
    transition: all 0.4s;
    filter: drop-shadow(0 4px 8px rgba(99, 102, 241, 0.3));
    position: relative;
    z-index: 1;
    display: block !important;
    width: auto !important;
}

.home-shortcuts a:hover i {
    transform: scale(1.15) rotateY(10deg);
    color: var(--primary-400);
    filter: drop-shadow(0 8px 16px rgba(99, 102, 241, 0.5));
}

.home-shortcuts p {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary) !important;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
    letter-spacing: 0.3px;
    display: block !important;
    width: 100% !important;
    visibility: visible !important;
}

.home-shortcuts a:hover p {
    color: var(--primary-400);
    transform: scale(1.05);
}

.home-shortcuts span {
    display: inline-block;
    margin-left: 8px;
    transition: transform 0.3s;
    opacity: 0.8;
}

.home-shortcuts a:hover span {
    transform: translateX(6px);
    opacity: 1;
}

/* Fix button display issues */
.home-shortcuts a p {
    display: block !important;
    width: 100%;
}

/* Ensure all shortcut content is visible */
.home-shortcuts * {
    visibility: visible !important;
}

.home-shortcuts a,
.home-shortcuts a * {
    opacity: 1 !important;
}

/* Override any hiding */
.home-shortcuts,
.home-shortcuts ul,
.home-shortcuts li,
.home-shortcuts a {
    display: block !important;
}

.home-shortcuts ul {
    display: grid !important;
}

.home-shortcuts a {
    display: flex !important;
}

/* Tablet view - 2 columns */
@media (max-width: 992px) {
    .home-shortcuts ul {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Mobile view - 1 column */
@media (max-width: 768px) {
    #home-banner {
        padding: 60px 0 40px;
    }
    
    #home-banner h2 {
        font-size: 32px;
    }
    
    #home-banner .input-group input,
    #home-banner .input-group-btn .btn {
        height: 50px;
        font-size: 16px;
    }
    
    .home-shortcuts {
        padding: 50px 0;
        margin-bottom: 0;
    }
    
    .home-shortcuts .lead {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .home-shortcuts ul {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .home-shortcuts li {
        min-height: auto;
    }
    
    .home-shortcuts a {
        padding: 40px 24px;
        min-height: 180px;
    }
    
    .home-shortcuts i {
        font-size: 48px;
        margin-bottom: 16px;
    }
    
    .home-shortcuts p {
        font-size: 18px;
    }
}

/* Fixes for specific WHMCS elements */
.client-alerts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.client-alerts li {
    border-bottom: 1px solid var(--border-subtle);
}

.client-alerts li:last-child {
    border-bottom: none;
}

.client-alerts a {
    display: block;
    padding: 12px 16px;
    transition: background 0.2s;
}

.client-alerts a:hover {
    background: var(--bg-hover);
}

/* Additional Background Fixes */
.row,
.col-md-3,
.col-md-9,
.col-sm-12,
.col-xs-12,
[class*="col-"] {
    background: transparent !important;
}

/* Specific WHMCS container fixes */
.container,
.container-fluid,
.content-container,
.page-container,
section,
article,
main {
    background: transparent !important;
}

/* Remove any default white backgrounds */
* {
    background-color: inherit;
}

/* Restore backgrounds only where needed */
.panel,
.modal-content,
.dropdown-menu,
.alert,
.well,
.btn,
.table-container,
.tile {
    background-color: var(--bg-card) !important;
}

/* Nuclear option - catch any remaining white backgrounds */
div[style*="background: white"],
div[style*="background-color: white"],
div[style*="background: #fff"],
div[style*="background-color: #fff"],
div[style*="background-color:#ffffff"],
div[style*="background:#ffffff"],
div[style*="background-color: rgb(255, 255, 255)"],
div[style*="background: rgb(255, 255, 255)"] {
    background: transparent !important;
}

/* Catch gray backgrounds too */
div[style*="background: #ccc"],
div[style*="background: #ddd"],
div[style*="background: #eee"],
div[style*="background-color: #ccc"],
div[style*="background-color: #ddd"],
div[style*="background-color: #eee"],
div[style*="background-color: gray"],
div[style*="background: gray"] {
    background: transparent !important;
}

/* Comprehensive table area fix */
.table-container,
.data-table-container,
#tableServicesList_processing,
#tableInvoicesList_processing,
.dataTables_wrapper .row {
    background: transparent !important;
}

/* Services/Products table complete dark theme */
#tableServicesList,
#tableInvoicesList,
#tableTicketsList,
#tableDomainsList {
    background: transparent !important;
}

#tableServicesList tbody tr,
#tableInvoicesList tbody tr,
#tableTicketsList tbody tr,
#tableDomainsList tbody tr {
    background: var(--bg-card) !important;
}

/* DataTable wrapper white background fix */
.dataTables_wrapper,
.dataTables_scroll,
.dataTables_scrollBody {
    background: transparent !important;
}

/* Panel containing tables */
.panel:has(table),
.panel-default:has(.table) {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: 16px !important;
}

/* Nuclear option for table white backgrounds */
table,
table tbody,
table tbody tr,
table tbody tr td {
    background-color: transparent !important;
}

table tbody tr {
    background: var(--bg-card) !important;
}

table tbody tr:hover {
    background: var(--bg-hover) !important;
}

/* Panel body containing table */
.panel-body:has(table),
.panel-body:has(.table-responsive) {
    background: transparent !important;
    padding: 0 !important;
}

/* Table responsive container inside panels */
.panel .table-responsive {
    border-radius: 0 0 16px 16px !important;
    margin: 0 !important;
}

/* ========================================
   CART & CHECKOUT - THEME WHITE COMPONENTS
   ======================================== */

/* Product cards - VPS boxes */
.product-card,
.product-box,
.package-box,
.pricing-box {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: 12px !important;
}

/* Configure page - product info box */
.product-info,
.product-details-box,
.configure-product-box {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: 12px !important;
    padding: 20px !important;
}

/* Order Summary - right sidebar */
.order-summary,
#orderSummary,
.sidebar-summary {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: 12px !important;
}

.order-summary h2,
#orderSummary h2 {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%) !important;
    color: white !important;
    padding: 16px 20px !important;
    margin: 0 !important;
    border-radius: 12px 12px 0 0 !important;
}

/* Cart items area */
.view-cart-items,
.cart-items-container {
    background: var(--bg-card) !important;
    border-radius: 12px !important;
}

.view-cart-items-header {
    background: linear-gradient(135deg, #1e5a8e 0%, #0d4a7a 100%) !important;
    color: white !important;
    padding: 16px 24px !important;
    border-radius: 12px 12px 0 0 !important;
}

.view-cart-items .item {
    background: var(--bg-card) !important;
    padding: 20px !important;
}

/* All white panels/boxes */
.panel-default,
.panel-body,
.box-default,
.card-default {
    background: var(--bg-card) !important;
}

/* Form inputs */
input[type="text"],
input[type="password"],
input[type="email"],
textarea,
select {
    background: rgba(20, 24, 36, 0.8) !important;
    border: 1px solid var(--border-subtle) !important;
    color: white !important;
    border-radius: 8px !important;
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* Promo code input */
input[name="promocode"],
#inputPromotionCode {
    background: rgba(20, 24, 36, 0.8) !important;
    border: 2px solid var(--primary-600) !important;
    color: white !important;
}

/* Continue button */
.btn-continue,
button[name="continue"] {
    background: transparent !important;
    color: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid var(--border-subtle) !important;
}

/* Checkout button */
.btn-checkout,
button[name="checkout"] {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
    border: none !important;
    padding: 14px 24px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
}

/* Order Now buttons */
.btn-order,
button[name="order"],
a.btn-order-now {
    background: #000 !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
}

/* Validate Code button */
button[value*="Validate"],
.btn-validate {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 32px !important;
    font-weight: 600 !important;
}

/* Configure Server button */
button[value*="Configure"],
.btn-configure {
    background: white !important;
    color: #000 !important;
    border: 2px solid white !important;
    border-radius: 8px !important;
    padding: 10px 24px !important;
    font-weight: 600 !important;
}

/* Help message box */
.alert-info,
.help-block,
.info-box {
    background: rgba(59, 130, 246, 0.1) !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    border-radius: 8px !important;
}

/* Empty cart message */
.alert-empty,
.empty-message {
    background: var(--bg-card) !important;
    color: rgba(255, 255, 255, 0.6) !important;
    padding: 40px !important;
    text-align: center !important;
    border-radius: 12px !important;
}

/* All text colors */
.view-cart-items *,
.order-summary *,
.product-card *,
.configure-product-box * {
    color: var(--text-primary) !important;
}

/* Links */
.view-cart-items a,
.order-summary a {
    color: var(--primary-400) !important;
}

/* Price text */
.price,
.pricing,
.amount {
    color: #10b981 !important;
    font-weight: 700 !important;
}

/* Order Summary body - force dark */
.order-summary .panel-body,
#orderSummary .panel-body,
.sidebar-summary .panel-body,
.order-summary > div,
#orderSummary > div {
    background: var(--bg-card) !important;
    padding: 20px !important;
}

/* VPS Product boxes - force dark */
.product,
.product-item,
.package,
.package-item,
div[class*="product-"],
div[class*="package-"] {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: 12px !important;
}

/* Product listing grid items */
.products .product,
.products-container .product,
.row .product,
.col-md-4 > div,
.col-sm-6 > div {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: 12px !important;
    padding: 20px !important;
}

/* VX-2 plan box specifically */
.product-details,
.product-info-container,
.selected-product {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: 12px !important;
    padding: 20px !important;
}

/* Any remaining white divs */
div[style*="background: white"],
div[style*="background: #fff"],
div[style*="background-color: white"],
div[style*="background-color: #fff"] {
    background: var(--bg-card) !important;
    background-color: var(--bg-card) !important;
}

/* ========================================
   FIX SPECIFIC ISSUES
   ======================================== */

/* 1. Hide "Powered by" footer - AGGRESSIVE */
.footer-powered-by,
.powered-by,
footer .powered-by,
.copyright .powered-by,
div[class*="powered"],
.footer-bar,
.footer-copyright,
footer p,
footer small,
footer div,
.text-center:has-text("Powered"),
p:has-text("Powered by"),
small:has-text("Powered by") {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Hide any element containing "Powered by" text */
body *:not(script):not(style) {
    &:contains("Powered by") {
        display: none !important;
    }
}

/* 2. Remove text effects from titles */
h1, h2, h3, h4, h5, h6,
.panel-title,
.section-title,
.card-title {
    text-shadow: none !important;
    -webkit-text-stroke: 0 !important;
    filter: none !important;
}

/* Specifically for "Your Active Products/Services" */
.panel-heading h2,
.panel-heading h3,
.section-header h2,
.section-header h3 {
    text-shadow: none !important;
    font-weight: 700 !important;
    letter-spacing: normal !important;
}

/* 3. VPS Titles - make them dark themed */
.product h3,
.product-title,
.package-title,
.product-name,
.product h4,
.product-header,
.package-header {
    background: linear-gradient(135deg, #1e5a8e 0%, #0d4a7a 100%) !important;
    color: white !important;
    padding: 12px 16px !important;
    border-radius: 8px 8px 0 0 !important;
    margin: 0 !important;
}

/* VX-1, VX-2, VX-3 titles specifically */
.product > h3:first-child,
.package > h3:first-child,
.product-box h3,
.package-box h3 {
    background: linear-gradient(135deg, #1e5a8e 0%, #0d4a7a 100%) !important;
    color: white !important;
}

/* Product card headers */
.product-card h3,
.pricing-box h3,
div[class*="product"] > h3 {
    background: linear-gradient(135deg, #1e5a8e 0%, #0d4a7a 100%) !important;
    color: white !important;
    padding: 12px 16px !important;
    margin: 0 !important;
}

/* 4. Ticket creation field - make black/dark */
.ticket-form textarea,
.ticket-form .form-control,
#inputMessage,
textarea[name="message"],
.markdown-editor,
.markdown-editor .editor-toolbar,
.markdown-editor .CodeMirror {
    background: #000 !important;
    color: white !important;
    border: 1px solid var(--border-subtle) !important;
}

/* Markdown editor toolbar */
.editor-toolbar {
    background: #1a1f2e !important;
    border-bottom: 1px solid var(--border-subtle) !important;
}

.editor-toolbar button {
    color: white !important;
}

/* 5. Ticket view - make white backgrounds dark */
.ticket-thread,
.ticket-message,
.ticket-reply,
.ticket-container,
.ticket-item,
.ticket-details {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: 12px !important;
}

.ticket-message-body,
.ticket-reply-body,
.ticket-content,
.ticket-body {
    background: var(--bg-card) !important;
    color: white !important;
    padding: 20px !important;
}

/* Ticket message white box - FORCE DARK */
.panel.panel-default.ticket-message,
.ticket-thread .panel,
.ticket-thread .panel-body,
.ticket-item .panel-body,
.ticket-thread .panel-heading,
.ticket-message .panel-heading,
.panel-heading.ticket-header {
    background: var(--bg-card) !important;
}

/* Ticket header with user info - FORCE DARK */
.ticket-thread > div,
.ticket-item > div:first-child,
div[class*="ticket"] > div[style*="background"] {
    background: var(--bg-card) !important;
    background-color: var(--bg-card) !important;
}

/* 6. Remove "OWNER" badge - MORE SPECIFIC */
.badge-owner,
.owner-badge,
.label-owner,
span.badge.badge-success,
span.label.label-success,
.badge[style*="green"],
.label[style*="green"] {
    display: none !important;
}

/* Hide OWNER badge in ticket requestor and details */
.ticket-requestor .badge,
.ticket-requestor .label,
dt:contains("Requestor") + dd .badge,
dt:contains("Requestor") + dd .label {
    display: none !important;
}

/* Ticket field borders - make dark */
.ticket-form input,
.ticket-form select,
.ticket-form textarea,
.ticket-details input,
.ticket-details select,
.markdown-editor {
    border-color: var(--border-subtle) !important;
}

/* Message editor border - DARK */
.markdown-editor,
.CodeMirror,
.CodeMirror-scroll,
.editor-preview-side,
.editor-preview {
    border: 1px solid var(--border-subtle) !important;
    border-color: var(--border-subtle) !important;
}

/* Editor wrapper and container */
.markdown-editor-wrapper,
.editor-container,
.form-control.markdown-editor {
    border: 1px solid var(--border-subtle) !important;
}

/* Bottom info bar */
.editor-statusbar,
.markdown-editor + div {
    background: var(--bg-card) !important;
    border-top: 1px solid var(--border-subtle) !important;
    color: rgba(255, 255, 255, 0.5) !important;
}

/* ULTRA SPECIFIC - Ticket header white background */
body .ticket-thread > div:first-child,
body .panel.panel-default > div:first-child,
body div[style*="background-color: rgb(255, 255, 255)"],
body div[style*="background-color:#fff"],
body div[style*="background-color: #ffffff"],
body div[style*="background-color:rgb(255,255,255)"],
body div[style*="background: rgb(255, 255, 255)"],
body div[style*="background:#fff"],
body div[style*="background: #ffffff"],
body div[style*="background:white"],
body div[style*="background: white"] {
    background: var(--bg-card) !important;
    background-color: var(--bg-card) !important;
}

/* Ticket message header specifically */
.ticket-thread .panel-heading,
.ticket-item .panel-heading,
div[class*="ticket"] div[style*="background"],
.panel.panel-default.ticket-message > div:first-child,
.panel.panel-default > div[style],
#main-body .panel > div[style*="background"],
#main-body div[style*="rgb(255, 255, 255)"],
#main-body div[style*="background-color: rgb(255, 255, 255)"] {
    background: #141824 !important;
    background-color: #141824 !important;
}

/* Nuclear option for ALL white inline backgrounds */
html body #main-body div[style*="255"] {
    background: #141824 !important;
    background-color: #141824 !important;
}

/* ULTRA SPECIFIC - Editor white borders */
body .markdown-editor,
body .CodeMirror,
body .CodeMirror-wrap,
body textarea.form-control,
body #inputMessage {
    border: 1px solid #2a3142 !important;
    border-color: #2a3142 !important;
}

/* Editor outer container */
body .form-group.prepend-icon,
body .markdown-editor-container {
    border: 1px solid #2a3142 !important;
}
